import request from "@/plugins/request";

export function AccountLogin(data) {
  return request({
    url: "/loginCenter/login",
    method: "post",
    data,
  });
}

export function AccountRegister(data) {
  return request({
    url: "/api/register",
    method: "post",
    data,
  });
}

// 获取当前登录用户权限
export function GetMyAuthAuth(data = {}) {
  return request({
    url: "/platform/my/getMyAuthAuth",
    method: "post",
    data,
  });
}

// 找回密码
export function ForgotPassword(data) {
  return request({
    url: "/global/register/forgotPassword",
    method: "post",
    data,
  });
}
